package com.awx.server.exception;

public class ObjectNotFoundException extends RuntimeException {
	
	private Class<?> c;
	private Long id;
	
	public ObjectNotFoundException(Class<?> c, Long id) {
		super("Class: " + c.getName() + ", Id: " + id);
		this.c = c;
		this.id = id;
	}

	public ObjectNotFoundException(Class<?> c, String filter) {
		super("Class: " + c.getName() + ", " +  filter);
	}

	/**
	 * @return Returns the c.
	 */
	public Class<?> getC() {
		return c;
	}

	/**
	 * @param c The c to set.
	 */
	public void setC(Class<?> c) {
		this.c = c;
	}

	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}

}
